#define _CRT_SECURE_NO_WARNINGS 1
#include<math.h>
#include<stdio.h>
float Max(float x, float y)
{
	return(x > y ? x : y);
}

float Min(float x, float y)
{
	float tt = (x < y ? x : y);
	return(x < y ? x : y);
}
int main()
{
	{
		float array[10] = { 0 };
		float a, sum = 0, c[10], d[10], e = 0, max = 0, min = 0, n = 0, m = 0;
		for (int i = 0; i < 10; i++)
		{
			scanf("%f", &array[i]);
		}
		for (int i = 0; i < 10; i++)
		{
			d[i] = array[i];
		}
		for (int i = 1; i < 9; i++)
		{
			if (d[i] > d[i + 1])
			{
				e = d[i + 1];
				d[i + 1] = d[i];
				d[i] = e;
			}
		}
		for (int i = 1; i < 9; i++)
		{
			sum += d[i];
		}
		float b;
		b = sum / 8.0;
		for (int j = 0; j < 10; j++)
		{
			c[j] = array[j] - b;
		}
		max = c[0];
		min = c[0];
		for (int j = 1; j < 10; j++)
		{
			if (Max(fabs(max), fabs(c[j])) > fabs(max))
			{
				max = Max(fabs(max), fabs(c[j]));
				n = j;
			}
		}
		for (int i = 1; i < 10; i++)
		{
			if (Min(fabs(min), fabs(c[i])) < fabs(min))
			{
				float ret = fabs(min);
				float ret1 = fabs(c[i]);
				min = Min(fabs(min), fabs(c[i]));
				m = i;
			}
		}
		printf("SCORE:%f\n", b);
		printf("good position:%f\nbad position:%f", m, n);
		return 0;
	}
}